<template>
  <div>

    <posting-editor></posting-editor>
    <div class="forum-display-box">
      <div class="">
        <ul class="forum-list">
          <li
              class="forum-list-item"
              v-for="(item, index) in forumList"
              :key="index"
          >
            <router-link
                :to="{ name: 'forumDetails', query: { forumFlag: item.forumID } }"
            >
              <div
                  class="forum-list-item-box"
                  :id="'anchor-' + item.forumID"
                  v-if="item.forumTitle != null"
              >
                <div class="head-img">
                  <img src="../assets/images/head-img.jpg" alt="我是头像"/>
                </div>
                <div class="forum-tile">
                  {{ item.forumTitle }}
                </div>
              </div>
            </router-link>
          </li>
        </ul>
      </div>
    </div>
  </div>
  
</template>

<script>
import PostingEditor from './posting-editor'
export default {
  name: "forum.vue",
  components:{
    PostingEditor
  }
}
</script>

<style scoped>

</style>